package com.qianyitian.hope2.sdk;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Bar {
    LocalDateTime time;
    float close;
    float open;
    float high;
    float low;
    float turnoverRate;
    float changePercent;


    public Bar() {
    }

    public Bar(LocalDateTime time, float open, float high, float low,float close,  float turnoverRate) {
        this.time = time;
        this.close = close;
        this.open = open;
        this.high = high;
        this.low = low;
        this.turnoverRate = turnoverRate;
    }

    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }

    public float getClose() {
        return close;
    }

    public void setClose(float close) {
        this.close = close;
    }

    public float getOpen() {
        return open;
    }

    public void setOpen(float open) {
        this.open = open;
    }

    public float getHigh() {
        return high;
    }

    public void setHigh(float high) {
        this.high = high;
    }

    public float getLow() {
        return low;
    }

    public void setLow(float low) {
        this.low = low;
    }

    public float getTurnoverRate() {
        return turnoverRate;
    }

    public void setTurnoverRate(float turnoverRate) {
        this.turnoverRate = turnoverRate;
    }

    public float getChangePercent() {
        return changePercent;
    }

    public void setChangePercent(float changePercent) {
        this.changePercent = changePercent;
    }
}
